﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SocialIn.Core;
using SocialIn.Biz;

namespace SocialIn.Web
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //
                GetDefaultBind();
            }
        }

        private void GetDefaultBind()
        {
            Intro biz = new Intro();
            rptHelpList.DataSource = biz.GetTopHelpNotice();
            rptHelpList.DataBind();

            rptVolunteerList.DataSource = biz.GetNewVolunteer();
            rptVolunteerList.DataBind();

            rptThanksList.DataSource = biz.GetTopAfterNote();
            rptThanksList.DataBind();
        }
    }
}